Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thumbtack/thumbprint-tokens

Package Overview
Dependencies
Maintainers
7
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thumbtack/thumbprint-tokens

Design variables that power Thumbtack’s UI.

  • 8.3.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
449
decreased by-3.65%
Maintainers
7
Weekly downloads
 
Created
Source

Thumbprint Tokens

Design variables that power Thumbtack’s UI.

Thumbprint Tokens are published as JavaScript, SCSS, and Swift.

API

Token JSON files

All tokens live within a tokens/*.json file. Token files follow the following format:

{
    "name": "Color",
    "description": "These are the colors we use at Thumbtack.",
    "tokens": [
        {
            "id": "blue",
            "description": {
                "ios": "Blue – #009fd9"
            },
            "value": {
                "web": "#009fd9",
                "ios": "UIColor = UIColor(red: 0.0, green: 0.62352943, blue: 0.8509804, alpha: 1.0)"
            },
            "type": "color"
        },
        {
            "id": "celebrate",
            "value": {
                "web": "#fbe002"
            },
            "type": "color",
            "deprecated": true
        }
    ]
}

Token object specification

A single token can have the following fields:

id

string, required

Unique string used to generate the variable names

name

string, required

Human readable name for the token

description

object

Additional information about the token

description.web

string

description.ios

string

value

object, required

The value of the token in each platform that the token supports

value.web

string or number

value.ios

string

type

string

Used for generating the outputted files and displaying examples on thumbprint.design/tokens.

Valid values include:

  • color
  • size
deprecated

bool

Indicates that a token is deprecated in the documenation and source code

FAQs

Package last updated on 17 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc